export default ({
    state: {
        list: [],
        form: {
            account: "",
            last_use_time: "",
            name: "",
            role_name: "",
            user_id: "",
            password:'',
            role_id:''
        },
        RoleList:[{}],
        roleName:'',
        auth: [],
        roleList:[],
        role_auth:[],
        version:'1.09'
    },
    mutations: {
        getList_power(state, payload) {
            state.list = payload
        },
        changeform_power(state,payload){
            state.form = payload;
            // console.log('form',state.form);
        },
        getRoleList_power(state,payload){
            state.RoleList=payload
            console.log(state.RoleList);
        },
        get_jurisdiction(state,payload){
            state.roleName=payload.role_name
        },
        getRoleTreeList_power(state,payload){
          // console.log(state.auth);
          state.auth=payload
          // console.log(state.auth);
        },
        getAllRoleList_power(state,payload){
          state.roleList=payload
          // console.log(state.roleList);
        },
        configRolePower_power(state,payload){
          state.role_auth=payload
          // console.log(state.role_auth);
        }
    },
    actions: {

    }
})
